package com.wq.common;

/**
 * @ description
 * @ author wuyunpeng
 * @ create 2022-07-21 13:18
 */
public class BaseContext {

    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentID(Long id) {
        threadLocal.set(id);
    }

    public static Long getCurrentID() {
        return threadLocal.get();
    }
}
